package com.gan.yidademo.common.base;

public enum ResponseErrorEnum {

    USER_UN_LOGIN(40001, "用户信息已过期,请重新登录!"),
    USER_REFRESH(40002, "请刷新token!"),
    USER_NO_PERMISSION(40003, "用户无权限!"),
    USER_PASS_WARN(43000, "用户名或密码错误!"),
    ILLEGAL_PARAMS(40004, "请求参数不合法!"),
    SYSTEM_ERROR(50000, "接口内部异常!"),
    ADD_ERROR(40006, "添加错误,请重试"),
    UPDATE_ERROR(40007, "更新失败,请重试"),
    DELETE_ERROR(40008, "删除失败,请重试"),
    NAME_OR_PASSWORD_ERROR(40009, "用户名或者密码错误！"),
    USER_NAME_EXIST(40010, "该登录名称已存在"),
    USER_NO_EXIST(40011, "用户不存在"),
    VERIFCATION_CODE_OVERDUE(40012, "验证码不存在或已过期！"),
    VERIFCATION_CODE_ERROR(40013, "验证码错误"),
    PHONENUMBER_DIND(40014, "手机号已被绑定!"),
    PHONENUMBER_NULL(40015, "用户手机号不能为空");

    ResponseErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
